package com.nsn.das.midas.model.component;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.nsn.das.midas.model.BaseEntity;

@Entity
@Table(name = "releaze")
public class Release extends BaseEntity{
	private static final long serialVersionUID = 4274648921147376436L;

	private String name;
	
	@OneToMany(fetch=FetchType.EAGER, mappedBy="release")
	private List<Build> builds;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Build> getBuilds() {
		return builds;
	}
	public void setBuilds(List<Build> builds) {
		this.builds = builds;
	}
	
	
}
